/**
 * @Author: 魏巍 <jswei>
 * @Date:   2018-08-10T21:01:21+08:00
 * @Email:  524314430@qq.com
 * @Filename: actions.js
 * @Last modified by:   jswei
 * @Last modified time: 2018-08-28T04:33:15+08:00
 * @Copyright: free
 */

import * as types from './mutation-type'

export default{
	/*loading*/
	hideLoading:({commit})=>{
		commit(types.HIDE_LOADING)
	},
	showLoading:({commit})=>{
		commit(types.SHOW_LOADING)
	},
	setLogin:({commit},userInfo)=>{
		commit(types.SET_LOGIN,userInfo);
	},
	setArticle:({commit},article)=>{
		commit(types.CATCH_ARTICLE,article);
	}
}
